﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8" />
    <title>杂项控制台 -@ViewBag.Title </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- basic styles -->
    <link href="/Content/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/Content/assets/css/font-awesome.min.css" />

    <!--[if IE 7]>
      <link rel="stylesheet" href="/Content/assets/css/font-awesome-ie7.min.css" />
    <![endif]-->
    <!-- page specific plugin styles -->
    @RenderSection("Header", false)

    <link rel="stylesheet" href="/Content/assets/css/ace.min.css" />
    <link rel="stylesheet" href="/Content/assets/css/ace-rtl.min.css" />
    <link rel="stylesheet" href="/Content/assets/css/ace-skins.min.css" />

    <!--[if lte IE 8]>
      <link rel="stylesheet" href="/Content/assets/css/ace-ie.min.css" />
    <![endif]-->
    <!-- inline styles related to this page -->
    <!-- ace settings handler -->

    <script src="/Content/assets/js/ace-extra.min.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="/Content/assets/js/html5shiv.js"></script>
    <script src="/Content/assets/js/respond.min.js"></script>
    <![endif]-->

    <link rel="Shortcut Icon" href="/b8.ico" />
    <style type="text/css">
        .dataTables_processing {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 40px;
            margin-left: -50%;
            margin-top: -25px;
            padding-top: 20px;
            text-align: center;
            font-size: 1.2em;
            /*background-color: white;*/
        }
    </style>
    
</head>

<body>
    <!-- 头部-->
    @RenderPage("/Areas/Admin/Views/Shared/_AdminHeadLayout.cshtml")
    <!-- 主体部分-->
    <div class="main-container" id="main-container">
        <script type="text/javascript">
            try { ace.settings.check('main-container', 'fixed') } catch (e) { }
        </script>

        <div class="main-container-inner">
            <!--主体左侧菜单视图-->
            @RenderPage("/Areas/Admin/Views/Shared/_AdminMainLeft.cshtml")

            @RenderBody()

            <!-- /#ace-settings-container -->
        </div><!-- /.main-container-inner -->

        <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
            <i class="icon-double-angle-up icon-only bigger-110"></i>
        </a>
    </div><!-- /.main-container -->
    <!-- basic scripts -->
    <!--[if !IE]> -->

    <script type="text/javascript">
        window.jQuery || document.write("<script src='/Content/assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
    </script>

    <!-- <![endif]-->
    <!--[if IE]>
    <script type="text/javascript">
     window.jQuery || document.write("<script src='/Content/assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");
    </script>
    <![endif]-->

    <script type="text/javascript">
        if ("ontouchend" in document) document.write("<script src='/Content/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
    </script>
    <script src="/Content/assets/js/bootstrap.min.js"></script>
    <script src="/Content/assets/js/typeahead-bs2.min.js"></script>

    <!-- page specific plugin scripts -->
    <!--[if lte IE 8]>
      <script src="/Content/assets/js/excanvas.min.js"></script>
    <![endif]-->

    <!-- ace scripts -->

    <script src="/Content/assets/js/ace-elements.min.js"></script>
    <script src="/Content/assets/js/ace.min.js"></script>

    <script type="text/javascript">
        var NName = window.location.pathname.split('/');
        if (NName.length >= 3) {
            var UrlFlag = true;
            $(".submenu li a").each(function () {
                if ($(this).attr("href").toUpperCase().indexOf(NName[3].toUpperCase()) > -1) {
                    try {
                        if ($(this).attr("href").split('/')[3].toUpperCase() == NName[3].toUpperCase()) {
                            UrlFlag = false;
                            $(this).parent().addClass("active");
                            $(this).parent().parent().parent().addClass("active open");
                        }
                    } catch (ef) { }
                }
            });
            if (UrlFlag) {
                $(".submenu a").each(function () {
                    if ($(this).attr("href").toUpperCase().indexOf(NName[2].toUpperCase()) > -1) {
                        try {
                            if ($(this).attr("href").split('/')[2].toUpperCase() == NName[2].toUpperCase()) {
                                UrlFlag = false;
                                //$(this).parent().addClass("active");
                                $(this).parent().parent().parent().addClass("active open");
                            }
                        } catch (ef) { }
                    }
                });
            }
        }
    </script>
    @RenderSection("Script", false)
</body>
</html>
